#pragma once

#include "common.h"

static const wchar_t MSG_ERROR_CAPTION[]    = L"错误";
static const wchar_t MSG_ERROR_DUPLICATED[] = L"你已经运行了另一个AIPPT！看屏幕左上角。";
static const wchar_t MUTEX_GLOBAL[] = L"aippt2012";
static const wchar_t CLASS_NAME[] = L"aippt";
static const wchar_t WINDOW_NAME[] = L"小旗手";

static const unsigned int UI_WIDTH  = 100;
static const unsigned int UI_HEIGHT = 53;

static const int UI_DELAY = 15;     // ms
static const int UI_TIMER_ID = 1;

static const clock_t UI_SHOW_TEXT_TIME = CLOCKS_PER_SEC / 3;


static const int TEXT_OFFSET_X = 24;
static const int TEXT_OFFSET_Y = 5;
static const int TIMER_DELAY   = 20;
static const int TIMER_ID      = 1;

static const wchar_t UI_TEXT_LEFT[]   = L"【←】";
static const wchar_t UI_TEXT_RIGHT[]  = L"【→】";
static const wchar_t UI_TEXT_LEFT2[]  = L"【↓】";
static const wchar_t UI_TEXT_RIGHT2[] = L"【↑】";
static const wchar_t UI_TEXT_CLAP[]   = L"【☆】";
static const wchar_t UI_TEXT_CLAP2[]  = L"【★】";
static const wchar_t UI_TEXT_NORMAL[] = L"运行中";
static const wchar_t UI_TEXT_WAIT2[]  = L"已上档";
static const wchar_t UI_TEXT_DRAG[]   = L"【移】";
static const wchar_t UI_TEXT_DONG[]   = L"【咚】";
static const wchar_t UI_TEXT_KA[]     = L"【咔】";
static const wchar_t UI_TEXT_RENDA[]  = L"连打！";



void init_ui(HINSTANCE, LPSTR, int);
void create_mutex(void);
void create_wclass(void);
void create_main_window(void);

void paint(HWND hwnd, bool update_only);
